= simple_form_for(@sales_firm, remote: true) do |f|
  table.table.table-bordered
    tr
      th style='width:120px' 公司名
      td colspan=3
        = f.input_field :name, class: 'form-control normal-input', style: 'min-width: 400px'
        = link_to '查重','javascript: void(0);', class: 'btn btn-warning push-10-l'
    tr
      th 字号
      td = f.input_field :short_name, class: 'form-control', style:'display: inline-block; width: 160px'
      th style='width:120px' 网址
      td = f.input_field :website, class: 'form-control', 'v-model': 'firm.website'
    tr
      th 省份城市
      td
        = f.input_field :province_id, as: :select,
                style: 'width: 150px; display: inline-block',
                prompt: '请选择省份', class: 'form-control relation_province_selector',
                collection: ::Base::Province.options
        = f.input_field :city_id, as: :select, collection: ::Base::City.options(@sales_firm.province_id),
                style: 'width: 150px; display: inline-block', class: 'form-control relation_city_selector'
      th 公司地址
      td = f.input_field :address, class: 'form-control'
    tr
      th 公司电话
      td = f.input_field :phone, class: 'form-control'
      th 公司传真
      td = f.input_field :fax, class: 'form-control'
    tr
      th 公司邮箱
      td = f.input_field :email, class: 'form-control'
      th 评级
      td = f.input_field :rating, class: 'form-control'
    tr
      th 备注
      td colspan=3
        = f.input_field :notes, as: :text, class: 'form-control'
  .row
    .col-xs-12
      .pull-right
        = f.button :submit, class: 'btn btn-primary push-10-r'
        = link_to '关闭','javascript:void(0)', class: 'btn btn-default', data: {dismiss: 'modal'}